<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.htm"/>
</head>
<body>
	<div id="head"><h1>HotelOrganizer</h1></div>
	<jsp:include page="menu-hotel.htm"/>
	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>
		<form method="post" action="SaveArbeit.html">
			<table class="editing">
				<colgroup>
					<col class="attribute"/>
					<col class="value"/>
				</colgroup>
				<tbody>
				<tr>
			<td><input type="hidden" name="id"
				value='<c:out value="${arbeitsplan.id}"/>' /></td>
				</tr>
					<tr>
						<td>Servicekraft:</td>     <!-- per Dropdown-Liste alle anzeigen -->
						<td>
					<select name=personal size=1>
										<c:forEach items="${personal1}" var="personal">
										<option value="${personal.id}">${personal.nachname}, ${personal.vorname}</option>
									</c:forEach>
					</select>
						</td>
					</tr>
					<tr>
						<td>Zimmer-Nummer:</td>     <!-- per Dropdown-Liste alle anzeigen -->
						<td>
					<select name=zimmer size=1>
										<c:forEach items="${zimmer1}" var="zimmer">
										<option value="${zimmer.id}">${zimmer.nr}</option>
									</c:forEach>
					</select>
						</td>
					</tr>	
					
				
				
				<!-- Mit dem funktionierts, aber nicht ändern, mit Dropdown gibts fehler: id to load is required for loading -->
					
 				<%-- 	<tr>
 						<td>Servicekraft:</td>
						<td> 
							<input type="text" name="personal" value='<c:out value="${arbeitsplan.personal}"/>'/>
							 						</td> 
 					</tr> 
					  
 					<tr> 
 						<td>Zimmer-Nummer:</td> 
						<td>
							<input type="text" name="zimmer" value='<c:out value="${arbeitsplan.zimmer}"/>'/>
						</td> 
 					</tr> --%>
					
					<tr>
						<td>Arbeitsbeginn (TT.MM.JJJJ):</td>
						<td>
							<input type="text" name="beginn" value='<c:out value="${arbeitsplan.arbeitsbeginn}"/>'/>
						</td>
					</tr>
					<tr>
						<td>Arbeitsende (TT.MM.JJJJ):</td>
						<td>
							<input type="text" name="ende" value='<c:out value="${arbeitsplan.arbeitsende}"/>'/>
						</td>
					</tr>
					<tr class="submit">
						<td colspan="2">
								<input type="submit" value=" Änderungen übernehmen "/>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
</body>
</html> 